<?php

namespace App\Policies;

use App\Models\BookCollection;
use App\Models\User;
use Illuminate\Auth\Access\HandlesAuthorization;

class BookCollectionPolicy
{
    use HandlesAuthorization;

    /**
     * Create a new policy instance.
     *
     * @return void
     */
    public function __construct()
    {

    }

    public function store(User $user,BookCollection $collection){
        return $user->id == $collection->user_id;

    }

    public function destroy(User $user,BookCollection $collection){
        return $user->id == $collection->user_id;
    }
}
